package com.oa.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@ApiModel("领用详情表")
@TableName("admin_collar_use_details")
@Data
public class CollarUseDetails extends Model<CollarUseDetails> {

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty("库存ID")
    private String inventoryId;

    @ApiModelProperty("领用申请ID")
    private String collarUseApplyId;

    @ApiModelProperty("数量")
    private Integer number;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
